<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" template="/template/template.xhtml"
	xmlns:s="http://sduept.security.el/func">
	<ui:define name="head">
		<title>保护风险管理</title>
		<link rel="stylesheet" href="/resources/plugins/datatables/dataTables.bootstrap.css" />
		<script src="/resources/js/calendarLocale.js"></script>
		<style type="text/css">
.ui-datatable-scrollable-header-box {
	margin-left: 0px;
	margin-right: 15px !important;
}

iframe {
	width: 100%;
	height: 600px;
}

.ui-datalist-empty-message {
	/* height: 100px; */
	min-height: 100px;
}

.ui-datalist-content {
	/* height: 100px; */
	min-height: 100px;
}

.widget-content .ui-inputfield {
	width: 520px;
	height: auto;
}
</style>
	</ui:define>
	<ui:define name="content">
		<div class="box box-solid with-border">
			<div class="nav-tabs-custom">
				<ul id="contentName" class="nav nav-tabs pull-left">
					<li class="active"><a href="#protectRisk_exceed" onclick="refresh2();" data-toggle="tab">超期未检情况</a></li>
					<li><a href="#protectRisk" onclick="refresh();" data-toggle="tab">电网保护运行风险</a></li>
					<li><a href="#protectRisk_out" onclick="refresh3();" data-toggle="tab">主保护退出运行情况</a></li>
				</ul>
				<h:form>
					<p:remoteCommand name="refresh" update="form" oncomplete="getTableScrollHeight();"
						action="#{operationRiskController.refreshPage}"></p:remoteCommand>
					<p:remoteCommand name="refresh2" update="form2" oncomplete="getTableScrollHeight();"
						action="#{operationRiskExceedController.refreshPage}"></p:remoteCommand>
					<p:remoteCommand name="refresh3" update="form3" oncomplete="getTableScrollHeight();"
						action="#{operationRiskOutController.refreshPage}"></p:remoteCommand>
				</h:form>
				<div class="tab-content no-padding">
					<!-- 超期未检情况-->
					<div class="chart tab-pane active" id="protectRisk_exceed">
						<h:form id="form2">
							<p:growl id="msgs1" showDetail="true" />
							<div class="box box-solid with-border">
								<div class="box-header">
									<p:outputLabel for="start2" value="时间：" />
									<p:calendar id="start2" navigator="true"
										value="#{operationRiskExceedController.queryDate1}" pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:outputLabel for="end2" value="至 " />
									<p:calendar id="end2" navigator="true" widgetVar="start"
										value="#{operationRiskExceedController.queryDate2}" pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:commandButton value="查询" id="query2" update="exceedTable" icon="ui-icon-search"
										oncomplete="getTableScrollHeight();"
										actionListener="#{operationRiskExceedController.queryByTime}" style="margin-left:10px;">
									</p:commandButton>
									<p:commandButton icon="ui-icon-refresh" value="重置"
										actionListener="#{operationRiskExceedController.resetQuery}" style="margin-left:5px;"
										update="start2 end2 exceedTable " oncomplete="getTableScrollHeight();" />
								</div>
							</div>
							<p:dataTable id="exceedTable" var="item" value="#{operationRiskExceedController.exceedList}"
								rowKey="#{item.id}" style="margin-bottom:0" emptyMessage="无记录" paginator="true"
								rowIndexVar="ite" paginatorPosition="bottom" scrollable="true">
								<p:column width="20" headerText="序号 " style="text-align:center">
									<!-- <h:outputText value="#{item.sort}" /> -->
									<h:outputText value="#{ite+1}" />
								</p:column>
								<p:column width="40" headerText="直调系统">
									<h:outputText value="#{item.directTransferNum}" />
								</p:column>
								<p:column width="40" headerText="广东省网">
									<h:outputText value="#{item.guangdongNum}" />
								</p:column>
								<p:column width="40" headerText="广西省网">
									<h:outputText value="#{item.guangxiNum}" />
								</p:column>
								<p:column width="40" headerText="云南省网">
									<h:outputText value="#{item.yunnanNum}" />
								</p:column>
								<p:column width="40" headerText="贵州省网">
									<h:outputText value="#{item.guizhouNum}" />
								</p:column>
								<p:column width="40" headerText="海南省网">
									<h:outputText value="#{item.hainanNum}" />
								</p:column>
								<p:column width="40" headerText="总计">
									<p:outputLabel id="summary"
										value="#{item.directTransferNum + item.guangdongNum + item.guangxiNum + item.yunnanNum + item.guizhouNum + item.hainanNum}" />
								</p:column>
							</p:dataTable>
						</h:form>
					</div>
					<!--主保护退出情况-->
					<div class="chart tab-pane" id="protectRisk_out">
						<h:form id="form3">
							<p:growl id="msgs" showDetail="true" />
							<div class="box box-solid with-border">
								<div class="box-header">
									<p:outputLabel for="start3" value="执行时间：" />
									<p:calendar id="start3" navigator="true" value="#{operationRiskOutController.queryDate1}"
										pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:outputLabel for="end3" value="至 " style="margin-right:5px;margin-left:5px;" />
									<p:calendar id="end3" navigator="true" value="#{operationRiskOutController.queryDate2}"
										pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:commandButton value="查询" id="query3" update="Table toolbar" icon="ui-icon-search"
										oncomplete="getTableScrollHeight();"
										actionListener="#{operationRiskOutController.queryByTime}" style="margin-left:5px;">
									</p:commandButton>
									<p:commandButton icon="ui-icon-refresh" value="重置" oncomplete="getTableScrollHeight();"
										actionListener="#{operationRiskOutController.resetQuery}" style="margin-left:5px;"
										update="start3 end3  Table toolbar" />
								</div>
							</div>
							<p:toolbar id="toolbar">
								<f:facet name="left">
									<p:commandButton value="新建" icon="ui-icon-document" update=":crateForm:MainProDialog"
										actionListener="#{operationRiskOutController.create}"
										oncomplete="PF('MainProDialog').show()"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_zbhxj')}" />
									<p:commandButton update=":editForm:editDlg1 Table" oncomplete="PF('editDlg1').show()"
										icon="ui-icon-pencil" value="编辑" disabled="#{operationRiskOutController.selected == null}"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_zbhbj')}" />
									<p:commandButton value="删除" id="delbtn" icon="ui-icon-trash"
										update="form3:Table msgs toolbar" oncomplete="getTableScrollHeight();"
										actionListener="#{operationRiskOutController.delete}"
										disabled="#{operationRiskOutController.selected == null}"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_zbhsc')}">
										<p:confirm header=" 提示" message="确定删除该记录吗?" icon="ui-icon-alert" />
									</p:commandButton>
								</f:facet>
							</p:toolbar>
							<p:dataTable id="Table" var="item" value="#{operationRiskOutController.outList}"
								rowKey="#{item.id}" emptyMessage="无记录" rows="20" paginator="true" rowIndexVar="ite"
								paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
								rowsPerPageTemplate="20,50,100" paginatorPosition="bottom"
								selection="#{operationRiskOutController.selected}" scrollable="true">
								<f:facet name="{Customization}">
									<p:outputLabel value="总计：#{operationRiskOutController.outList.size()} 条记录"
										style="margin-right:20px;"></p:outputLabel>
								</f:facet>
								<p:ajax event="rowSelectRadio" listener="#{operationRiskOutController.onRowSelect}"
									update="form3:toolbar"></p:ajax>
								<p:column selectionMode="single" width="10" style="text-align:center" />
								<p:column width="10" headerText="序号 " style="text-align:center">
									<h:outputText value="#{ite+1}" />
								</p:column>
								<p:column width="60" headerText="调管范围">
									<h:outputText value="#{item.subCrotrolArea}" />
								</p:column>
								<p:column width="60" headerText="厂站名称">
									<h:outputText value="#{item.subStationName}" />
								</p:column>
								<p:column width="60" headerText="保护通道退出情况">
									<h:outputText style="white-space:pre-wrap;" value="#{item.channelExit}" />
								</p:column>
								<p:column width="60" headerText="执行时间">
									<h:outputText value="#{item.executionTime}">
										<f:convertDateTime pattern="yyyy-MM-dd" />
									</h:outputText>
								</p:column>
								<p:column width="60" headerText="通道中断时间">
									<h:outputText value="#{item.channelBreakTime}">
										<f:convertDateTime pattern="yyyy-MM-dd" />
									</h:outputText>
								</p:column>
								<p:column width="60" headerText="备注">
									<h:outputText style="white-space:pre-wrap;" value="#{item.remark}" />
								</p:column>
							</p:dataTable>
						</h:form>

						<h:form id="crateForm">
							<p:dialog widgetVar="MainProDialog" header="新建" modal="true" id="MainProDialog" width="850"
								height="500">
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton id="createSaveBtn2" value="保存" update=":form3:Table :form3:msgs"
											oncomplete="PF('MainProDialog').hide();getTableScrollHeight();"
											actionListener="#{operationRiskOutController.saveNew}" icon=" ui-icon-disk" />
									</f:facet>
								</p:toolbar>
								<p:outputPanel id="createDetail2" style="width:100%">
									<p:panelGrid style="width:100%">
										<p:row>
											<p:column>
												<h:outputText value="调管范围:" />
											</p:column>
											<p:column>
												<p:autoComplete forceSelection="true" size="16" scrollHeight="250" dropdown="true"
													value="#{operationRiskOutController.created.subCrotrolArea}"
													completeMethod="#{substationCompelteController.completeSubControlArea}" required="true"
													requiredMessage="调管范围为必填项">
												</p:autoComplete>
											</p:column>
											<p:column>
												<h:outputText value="厂站名称:" />
											</p:column>
											<p:column>
												<p:autoComplete size="16" scrollHeight="250" dropdown="true"
													value="#{operationRiskOutController.created.subStationName}"
													completeMethod="#{substationCompelteController.completeWorkplace}" required="true"
													requiredMessage="厂站名称为必填项">
												</p:autoComplete>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="保护通道退出情况" />
											</p:column>
											<p:column colspan="5" rows="2">
												<p:inputTextarea style="width:100%" label="content" autoResize="false"
													value="#{operationRiskOutController.created.channelExit}">
												</p:inputTextarea>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="执行时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskOutController.created.executionTime}" navigator="true"
													pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
											<p:column>
												<h:outputText value="通道中断时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskOutController.created.channelBreakTime}"
													navigator="true" pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
										</p:row>

										<p:row>
											<p:column>
												<h:outputText value="备注:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="5" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskOutController.created.remark}">
												</p:inputTextarea>
											</p:column>
										</p:row>
									</p:panelGrid>
								</p:outputPanel>
							</p:dialog>
						</h:form>
						<h:form id="editForm">
							<p:dialog widgetVar="editDlg1" header="编辑" modal="true" id="editDlg1" width="850"
								height="500">
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton id="editSaveBtn1" value="保存" update=":form3:Table :form3:msgs"
											oncomplete="PF('editDlg1').hide();getTableScrollHeight();"
											actionListener="#{operationRiskOutController.update}" icon=" ui-icon-disk" />
									</f:facet>
								</p:toolbar>
								<p:outputPanel id="editDetail" style="width:100%">
									<p:panelGrid style="width:100%">
										<p:row>
											<p:column>
												<h:outputText value="调管范围:" />
											</p:column>
											<p:column>
												<p:autoComplete forceSelection="true" size="16" scrollHeight="250" dropdown="true"
													value="#{operationRiskOutController.selected.subCrotrolArea}"
													completeMethod="#{substationCompelteController.completeSubControlArea}" required="true"
													requiredMessage="调管范围为必填项">
												</p:autoComplete>
											</p:column>
											<p:column>
												<h:outputText value="厂站名称:" />
											</p:column>
											<p:column>
												<p:autoComplete size="16" scrollHeight="250" dropdown="true"
													value="#{operationRiskOutController.selected.subStationName}"
													completeMethod="#{substationCompelteController.completeWorkplace}" required="true"
													requiredMessage="厂站名称为必填项">
												</p:autoComplete>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="保护通道退出情况" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="2" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskOutController.selected.channelExit}">
												</p:inputTextarea>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="执行时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskOutController.selected.executionTime}"
													navigator="true" pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
											<p:column>
												<h:outputText value="通道中断时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskOutController.selected.channelBreakTime}"
													navigator="true" pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
										</p:row>

										<p:row>
											<p:column>
												<h:outputText value="备注:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="5" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskOutController.selected.remark}">
												</p:inputTextarea>
											</p:column>
										</p:row>
									</p:panelGrid>
								</p:outputPanel>
							</p:dialog>
						</h:form>
					</div>

					<!-- 电网保护运行风险-->
					<div class="chart tab-pane" id="protectRisk" style="position: relative">
						<h:form id="form">
							<p:growl id="msgs" showDetail="true" />
							<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
								<p:commandButton value="是" type="button" styleClass="ui-confirmdialog-yes"
									icon="ui-icon-check" />
								<p:commandButton value="否" type="button" styleClass="ui-confirmdialog-no"
									icon="ui-icon-close" />
							</p:confirmDialog>
							<div class="box box-solid with-border">
								<div class="box-header">
									<p:outputLabel for="start" value="填写时间：" />
									<p:calendar id="start" navigator="true" value="#{operationRiskController.queryDate1}"
										pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:outputLabel for="end" value="至 " style="margin-right:5px;margin-left:5px;" />
									<p:calendar id="end" navigator="true" value="#{operationRiskController.queryDate2}"
										pattern="yyyy-MM-dd" maxdate="Date()">
									</p:calendar>
									<p:commandButton value="查询" oncomplete="getTableScrollHeight();"
										onclick="updateDate('start','end');" id="query" update="riskRecordTb toolbar_risk"
										icon="ui-icon-search" actionListener="#{operationRiskController.queryByTime}"
										style="margin-left:5px;">
									</p:commandButton>
									<p:commandButton icon="ui-icon-refresh" value="重置"
										actionListener="#{operationRiskController.resetQuery}" style="margin-left:5px;"
										oncomplete="getTableScrollHeight();" update=" start end  toolbar_risk riskRecordTb" />
								</div>
							</div>
							<p:toolbar id="toolbar_risk">
								<f:facet name="left">
									<p:commandButton value="新建" icon="ui-icon-document"
										update=":createProRiskForm:createDetail1 :createProRiskForm:createSaveBtn1"
										actionListener="#{operationRiskController.createRisk}"
										oncomplete="PF('createDlg1').show()"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_xj')}" />
									<p:commandButton update=":editProRiskForm:editDetailRisk :form:riskRecordTb"
										oncomplete="PF('editDlgRisk').show()" icon="ui-icon-pencil" value="编辑"
										disabled="#{operationRiskController.selectRisk == null}"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_bj')}">
									</p:commandButton>
									<p:commandButton value="删除" id="delbtn" icon="ui-icon-trash"
										oncomplete="getTableScrollHeight();" update="form:riskRecordTb form:msgs toolbar_risk"
										actionListener="#{operationRiskController.deleteRisk}"
										disabled="#{operationRiskController.selectRisk == null}"
										rendered="#{s:hasPermission(session,'bhyx_bhrb_bhfxgl_sc')}">
										<p:confirm header=" 提示" message="确定删除该记录吗?" icon="ui-icon-alert" />
									</p:commandButton>
								</f:facet>

							</p:toolbar>
							<p:dataTable id="riskRecordTb" var="item" value="#{operationRiskController.risk}"
								selection="#{operationRiskController.selectRisk}" rowKey="#{item.id}" rowIndexVar="ite"
								style="margin-bottom:0" emptyMessage="无记录" editable="true" editMode="cell" rows="10"
								paginator="true"
								paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
								rowsPerPageTemplate="10,20,50" paginatorPosition="bottom" scrollable="true">
								<f:facet name="{Customization}">
									<p:outputLabel value="总计：#{operationRiskController.risk.size()} 条记录"
										style="margin-right:20px;"></p:outputLabel>
								</f:facet>
								<p:ajax event="rowSelectRadio" listener="#{operationRiskController.onRowSelect}"
									update="form:toolbar_risk"></p:ajax>
								<p:column selectionMode="single" width="10" style="text-align:center" />
								<p:column width="10" headerText="序号 ">
									<h:outputText value="#{ite+1}" />
								</p:column>
								<p:column width="25" headerText="调管范围">
									<h:outputText value="#{item.subControlArea}" />
								</p:column>
								<p:column width="35" headerText="工作时间">
									<h:outputText value="#{item.workTime}" />
								</p:column>
								<p:column width="35" headerText="风险内容">
									<h:outputText value="#{item.riskContect}" />
								</p:column>
								<p:column width="35" headerText="风险评级">
									<h:outputText value="#{item.riskRating}" />
								</p:column>
								<p:column width="35" headerText="填写时间">
									<h:outputText value="#{item.reportTime}">
										<f:convertDateTime pattern="yyyy-MM-dd" />
									</h:outputText>
								</p:column>
								<p:column width="180" headerText="相关保护措施">
									<h:outputText escape="false" style="white-space:pre-wrap;" value="#{item.procedures}" />
								</p:column>
								<p:column width="30" headerText="备注">
									<h:outputText style="white-space:pre-wrap;" value="#{item.remark}" />
								</p:column>
							</p:dataTable>
						</h:form>
						<h:form id="createProRiskForm">
							<p:dialog widgetVar="createDlg1" header="新建" modal="true" id="createDlg1" width="850">
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton id="createSaveBtn1" value="保存" update="form:riskRecordTb  form:msgs"
											oncomplete="PF('createDlg1').hide();getTableScrollHeight();"
											actionListener="#{operationRiskController.saveNew}" icon=" ui-icon-disk" />
									</f:facet>
								</p:toolbar>
								<p:outputPanel id="createDetail1" style="width:100%">
									<p:panelGrid rendered="#{not empty operationRiskController.created}" style="width:100%">
										<p:row>
											<p:column>
												<h:outputText value="调管范围:" />
											</p:column>
											<p:column>
												<p:autoComplete forceSelection="true" size="18" scrollHeight="250" dropdown="true"
													value="#{operationRiskController.created.subControlArea}"
													completeMethod="#{substationCompelteController.completeSubControlArea}" required="true"
													requiredMessage="调管范围为必填项">
												</p:autoComplete>
											</p:column>
											<p:column>
												<h:outputText value="风险评级:" />
											</p:column>
											<p:column>
												<p:inputText style="width:100%" value="#{operationRiskController.created.riskRating}" />
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="工作时间:" />
											</p:column>
											<p:column>
												<p:inputText style="width:100%" value="#{operationRiskController.created.workTime}" />
											</p:column>
											<p:column>
												<h:outputText value="填写时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskController.created.reportTime}" navigator="true"
													pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="风险内容:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="2" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskController.created.riskContect}">
												</p:inputTextarea>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="相关保护措施:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="8" label="content" style="width:100%" autoResize="false"
													value="#{operationRiskController.created.procedures}">
												</p:inputTextarea>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="备注:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="3" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskController.created.remark}">
												</p:inputTextarea>
											</p:column>
										</p:row>
									</p:panelGrid>
								</p:outputPanel>
							</p:dialog>
						</h:form>
						<h:form id="editProRiskForm">
							<p:dialog widgetVar="editDlgRisk" header="编辑" modal="true" id="editDlgRisk" width="850">
								<p:toolbar>
									<f:facet name="left">
										<p:commandButton value="保存" icon="ui-icon-disk" update="form:riskRecordTb :form:msgs"
											oncomplete="PF('editDlgRisk').hide();getTableScrollHeight();"
											actionListener="#{operationRiskController.update}" />
									</f:facet>
								</p:toolbar>
								<p:outputPanel id="editDetailRisk" style="width:100%">
									<p:panelGrid rendered="#{not empty operationRiskController.selectRisk}" style="width:100%">
										<p:row>
											<p:column>
												<h:outputText value="调管范围:" />
											</p:column>
											<p:column>
												<p:autoComplete forceSelection="true" size="18" scrollHeight="250" dropdown="true"
													value="#{operationRiskController.selectRisk.subControlArea}"
													completeMethod="#{substationCompelteController.completeSubControlArea}" required="true"
													requiredMessage="调管范围为必填项">
												</p:autoComplete>
											</p:column>
											<p:column>
												<h:outputText value="风险评级:" />
											</p:column>
											<p:column>
												<p:inputText style="width:100%" value="#{operationRiskController.selectRisk.riskRating}" />
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="工作时间:" />
											</p:column>
											<p:column>
												<p:inputText style="width:100%" value="#{operationRiskController.selectRisk.workTime}" />
											</p:column>
											<p:column>
												<h:outputText value="填写时间:" />
											</p:column>
											<p:column>
												<p:calendar value="#{operationRiskController.selectRisk.reportTime}" navigator="true"
													pattern="yyyy-MM-dd" style="width:100%;" maxdate="Date()" />
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="风险内容:" />
											</p:column>
											<p:column colspan="5">
												<p:inputText style="width:100%" label="content"
													value="#{operationRiskController.selectRisk.riskContect}">
												</p:inputText>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="相关保护措施:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="8" label="content" style="width:100%" autoResize="false"
													value="#{operationRiskController.selectRisk.procedures}">
												</p:inputTextarea>
											</p:column>
										</p:row>
										<p:row>
											<p:column>
												<h:outputText value="备注:" />
											</p:column>
											<p:column colspan="5">
												<p:inputTextarea rows="3" style="width:100%" label="content" autoResize="false"
													value="#{operationRiskController.selectRisk.remark}">
												</p:inputTextarea>
											</p:column>
										</p:row>
									</p:panelGrid>
								</p:outputPanel>
							</p:dialog>
						</h:form>
					</div>
				</div>
			</div>
		</div>
	</ui:define>
	<ui:define name="contentend">
		<script src="/resources/js/tables/tabScrollTable.js" />
		<script>
			var ss = [ 'start', 'start2', 'start3' ];
			var es = [ 'end', 'end2', 'end3' ];
			function updateDate(id1, id2) {
				PF()
				var s = $('#' + id1).val();
				var e = $('#' + id2).val();
				for ( var i in ss) {
					if (ss[i] != id1) {
						$('#' + ss[i]).val(s);
						$('#' + es[i]).val(e);
					}
				}
			}
		</script>
	</ui:define>
</ui:composition>
